// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ReportRecord561 : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ReportRecord561, MasterDbContextLocator>
    {

        public int RptId { get; set; }
        public int? RptType { get; set; }
        public string RptIdStr { get; set; }
        public DateTime? RptTime { get; set; }
        public string dtuId { get; set; }
        public string dtuAlias { get; set; }
        public string dtuCode { get; set; }
        public int? STATUS { get; set; }
        public string LBS { get; set; }
        public string GPS { get; set; }
        public int? CSQ { get; set; }
        public double? SPEED { get; set; }
        public int? TIMES { get; set; }
        public DateTime? DATECLOCK { get; set; }
        public string LOCALID { get; set; }
        public string VERSION { get; set; }
        public string SERVERNAME { get; set; }
        public int? SERVERPORT { get; set; }
        public string MQTTUSERNAME { get; set; }
        public string MQTTPASSWORD { get; set; }
        public string APNNAME { get; set; }
        public string APNUSER { get; set; }
        public string APNPASS { get; set; }
        public string CCID { get; set; }
        public int? SLEEPTIME { get; set; }
        public int? ALARMTIME { get; set; }
        public string IPHONE1 { get; set; }
        public string IPHONE2 { get; set; }
        public string IPHONE3 { get; set; }
        public string IPHONE4 { get; set; }
        public string IPHONE5 { get; set; }
        public double? GpsLat { get; set; }
        public double? GpsLgt { get; set; }
        public double? BasLat { get; set; }
        public double? BasLgt { get; set; }
        public double? GpsLatBD { get; set; }
        public double? GpsLgtBD { get; set; }
        public double? BasLatBD { get; set; }
        public double? BasLgtBD { get; set; }
        public bool? bGpsLoc { get; set; }
        public bool? bBasLoc { get; set; }
        public string BaseStationCode { get; set; }
        public string BaseStationName { get; set; }
        public int? AreaId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string BaseStationTTCode { get; set; }
    
        public void Configure(EntityTypeBuilder<ReportRecord561> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.RptId)
                    .HasName("PK__ReportRe__A50342A5B03E62DF");

                entityBuilder.Property(e => e.APNNAME).HasMaxLength(50);

                entityBuilder.Property(e => e.APNPASS).HasMaxLength(50);

                entityBuilder.Property(e => e.APNUSER).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationCode).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationName).HasMaxLength(300);

                entityBuilder.Property(e => e.BaseStationTTCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CCID).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyName).HasMaxLength(200);

                entityBuilder.Property(e => e.DATECLOCK).HasColumnType("datetime");

                entityBuilder.Property(e => e.GPS).HasMaxLength(500);

                entityBuilder.Property(e => e.IPHONE1).HasMaxLength(50);

                entityBuilder.Property(e => e.IPHONE2).HasMaxLength(50);

                entityBuilder.Property(e => e.IPHONE3).HasMaxLength(50);

                entityBuilder.Property(e => e.IPHONE4).HasMaxLength(50);

                entityBuilder.Property(e => e.IPHONE5).HasMaxLength(50);

                entityBuilder.Property(e => e.LBS).HasMaxLength(500);

                entityBuilder.Property(e => e.LOCALID).HasMaxLength(100);

                entityBuilder.Property(e => e.MQTTPASSWORD).HasMaxLength(100);

                entityBuilder.Property(e => e.MQTTUSERNAME).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(1000);

                entityBuilder.Property(e => e.RptIdStr).HasMaxLength(50);

                entityBuilder.Property(e => e.RptTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.SERVERNAME).HasMaxLength(200);

                entityBuilder.Property(e => e.VERSION).HasMaxLength(50);

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(100);

                entityBuilder.Property(e => e.dtuCode).HasMaxLength(100);

                entityBuilder.Property(e => e.dtuId).HasMaxLength(50);
        }

    }
}

